package edu.njust.LabSystem.dao;

import edu.njust.LabSystem.entity.Equipment;
import edu.njust.LabSystem.entity.Lab;
import edu.njust.LabSystem.entity.Seat;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface ILab {
    void insertLab(Lab lab);
    void deleteLabById(String id);
    void updateLab(Lab lab);
    List<Lab> getLabById(String id);

    void insertSeat(Seat sest);
    void deleteSeat(@Param("lab") String lab,@Param("seat") String seat);
    void updateSeat(Seat seat);
    List<Seat> getSeat(@Param("lab") String lab,@Param("seat") String seat);

    void insertEquipment(Equipment equipment);
    void deleteEquipment(String id);
    void updateEquipment(Equipment equipment);

    List<Equipment>getEquipmentById(String id);
    Lab getByLabId(String LabId);
}
